00001 <?php
00003 define("PATH_TO_ROOT", "../");
00005 require_once (PATH_TO_ROOT."common/init.inc.php");
00006
00007 require_once (PATH_TO_ROOT."/style/classes/class.style.inc.php");
00008 $STYLES_CSSFILE = Style::getCSSPath() ."stylesheets.css";
00009 ?>
00010
00011 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
00012 <html lang="de">
00013
00014 <head>
00015 <title>eStudy - Bildgroßansicht</title>
00016
00017 <meta http-equiv="Content-Type" content="text/html; charset=<?php
00018 echo $settings["charset"]; ?>" />
00019 <link href="<?php echo $STYLES_CSSFILE ?>" rel="stylesheet" type="text/css" />
00020 <?php
00021
00022 if (file_exists(Style::getCSSPath() ."ieextra.css")) echo "\t<!--[if lt IE 7]><link href=\"".Style::getCSSPath() ."ieextra.css\" rel=\"stylesheet\" type=\"text/css\" /><![endif]-->\n";
00023
00024
00025 if (file_exists(Style::getCSSPath() ."ie_pngfix.js")) echo "\t<!--[if lt IE 7]><script type=\"text/javascript\">var stylepath='".Style::getCSSPath() ."';</script><script defer=\"defer\" type=\"text/javascript\" src=\"".Style::getCSSPath() ."ie_pngfix.js\"></script><![endif]-->\n";
00026 ?>
00027 </head>
00028
00029 <body>
00030 <div>
00031 <?php
00032 $picPath = isset($_GET['picurl']) ? $_GET['picurl'] : '';
00033 if (empty($auth->authError) && file_exists($picPath)) {
00034 $ext = isset($_GET['ext']) ? $_GET['ext'] : '';
00035 if (isset($_GET['cx1'])) {
00036 $cropParam = "&cx1=".$_GET['cx1']."&cy1=".$_GET['cy1']."&cx2=".$_GET['cx2']."&cy2=".$_GET['cy2'];
00037 } else {
00038 $cropParam = "";
00039 }
00040 $picPath = PATH_TO_ROOT."common/makethumb.php?picurl=".rawurlencode($picPath) ."&ext=".$ext;
00041 if ($cropParam) {
00042 $picPath.= $cropParam;
00043 }
00044 echo "<img src='".$picPath."' alt='Galeriebild' style='border: 1px solid #000000;' />";
00045 } else {
00046 Output::errorMessage("Fehler bei Parameterübergabe", 1, false, true);
00047 }
00048 ?>
00049 <br /><br />
00050 <a href='javascript:history.go(-1);'>zurück</a>
00051 <br /><br /></div>
00052 </body>
00053
00054 </html>